package
{
	import flash.display.Sprite;
	import flash.display.Shape;
	
	public class Ship extends Sprite
	{
		private var flame:Shape;
		
		public function Ship()
		{
			this.graphics.lineStyle(1, 0xFFFFFF);
			this.graphics.moveTo(-5,0);
			this.graphics.lineTo(-10,-10);
			this.graphics.lineTo(10,0);
			this.graphics.lineTo(-10,10);
			this.graphics.lineTo(-5,0);
			
			flame = new Shape();
			flame.graphics.lineStyle(1, 0xFFFFFF);			
			flame.graphics.moveTo(-8,-7);
			flame.graphics.lineTo(-15,0);
			flame.graphics.lineTo(-8,7);
			this.flame.visible = false;
			
			this.addChild(flame);
		}
		
		public function flameOn():void
		{
			this.flame.visible = true;
		}
		
		public function flameOff():void
		{
			this.flame.visible = false;
		}		
	}
}